<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>课程介绍 - 十年全勤健身房</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/mobile-nav.css">
    <link rel="stylesheet" href="css/courses.css">
    <link rel="stylesheet" href="css/quick-nav.css">
</head>

<body>
    <header>
        <nav class="main-nav">
            <div class="logo">
                <a href="index.html">十年全勤健身</a>
            </div>
            <ul class="nav-links">
                <li><a href="index.html">首页</a></li>
                <li><a href="courses.html">课程介绍</a></li>
                <li><a href="trainers.html">教练团队</a></li>
                <li><a href="facilities.html">器材设施</a></li>
                <li><a href="news.html">健身资讯</a></li>
                <li><a href="shop.html">在线商城</a></li>
                <li><a href="member.html">会员中心</a></li>
                <li><a href="events.html">活动专区</a></li>
                <li><a href="about.html">关于我们</a></li>
                <li><a href="contact.html">联系我们</a></li>
            </ul>
        </nav>
    </header>

    <main>
        <section class="course-hero">
            <h1>专业课程介绍</h1>
            <p>为您提供多样化的健身课程选择</p>
        </section>

        <section class="course-categories">
            <div class="category-filters">
                <button class="filter-btn active" data-category="all">全部课程</button>
                <button class="filter-btn" data-category="yoga">瑜伽</button>
                <button class="filter-btn" data-category="strength">力量训练</button>
                <button class="filter-btn" data-category="cardio">有氧运动</button>
                <button class="filter-btn" data-category="boxing">搏击</button>
            </div>

            <div class="course-grid">
                <div class="course-card" data-category="yoga">
                    <img src="assets/imgs/yjkc.png" alt="瑜伽课程">
                    <div class="course-info">
                        <h3>初级瑜伽</h3>
                        <p class="course-description">适合初学者的基础瑜伽课程，帮助提高身体柔韧性和平衡能力。</p>
                        <div class="course-details">
                            <span class="time">60分钟</span>
                            <span class="level">初级</span>
                            <span class="price">¥128/课时</span>
                        </div>
                        <a href="#" class="book-btn">立即预约</a>
                    </div>
                </div>

                <div class="course-card" data-category="strength">
                    <img src="assets/imgs/llxl.png" alt="力量训练">
                    <div class="course-info">
                        <h3>核心力量训练</h3>
                        <p class="course-description">专业的力量训练课程，提升肌肉力量和身体素质。</p>
                        <div class="course-details">
                            <span class="time">90分钟</span>
                            <span class="level">中级</span>
                            <span class="price">¥168/课时</span>
                        </div>
                        <a href="#" class="book-btn">立即预约</a>
                    </div>
                </div>

                <div class="course-card" data-category="cardio">
                    <img src="assets/imgs/yyyd.png" alt="有氧运动">
                    <div class="course-info">
                        <h3>活力有氧操</h3>
                        <p class="course-description">充满活力的有氧运动，燃烧脂肪，提高心肺功能。</p>
                        <div class="course-details">
                            <span class="time">45分钟</span>
                            <span class="level">全级别</span>
                            <span class="price">¥98/课时</span>
                        </div>
                        <a href="#" class="book-btn">立即预约</a>
                    </div>
                </div>

                <div class="course-card" data-category="boxing">
                    <img src="assets/imgs/bjkc.png" alt="搏击课程">
                    <div class="course-info">
                        <h3>泰拳搏击</h3>
                        <p class="course-description">专业的泰拳训练课程，提升格斗技巧和身体素质。</p>
                        <div class="course-details">
                            <span class="time">60分钟</span>
                            <span class="level">中级</span>
                            <span class="price">¥188/课时</span>
                        </div>
                        <a href="#" class="book-btn">立即预约</a>
                    </div>
                </div>
            </div>
        </section>

        <section class="course-schedule">
            <h2>课程时间表</h2>
            <div class="schedule-container">
                <div class="schedule-header">
                    <div class="time-column">时间</div>
                    <div class="day-column">周一</div>
                    <div class="day-column">周二</div>
                    <div class="day-column">周三</div>
                    <div class="day-column">周四</div>
                    <div class="day-column">周五</div>
                    <div class="day-column">周六</div>
                    <div class="day-column">周日</div>
                </div>
                <div class="schedule-body">
                    <div class="schedule-row">
                        <div class="time-column">09:00-10:00</div>
                        <div class="schedule-cell">瑜伽基础<br>张教练<br>剩余：5</div>
                        <div class="schedule-cell">力量训练<br>王教练<br>剩余：3</div>
                        <div class="schedule-cell">有氧操<br>李教练<br>剩余：8</div>
                        <div class="schedule-cell">瑜伽进阶<br>张教练<br>剩余：4</div>
                        <div class="schedule-cell">搏击<br>刘教练<br>剩余：6</div>
                        <div class="schedule-cell">瑜伽基础<br>张教练<br>剩余：7</div>
                        <div class="schedule-cell">力量训练<br>王教练<br>剩余：5</div>
                    </div>
                    <div class="schedule-row">
                        <div class="time-column">10:30-11:30</div>
                        <div class="schedule-cell">力量训练<br>王教练<br>剩余：6</div>
                        <div class="schedule-cell">有氧操<br>李教练<br>剩余：4</div>
                        <div class="schedule-cell">搏击<br>刘教练<br>剩余：5</div>
                        <div class="schedule-cell">力量训练<br>王教练<br>剩余：3</div>
                        <div class="schedule-cell">瑜伽基础<br>张教练<br>剩余：8</div>
                        <div class="schedule-cell">搏击<br>刘教练<br>剩余：4</div>
                        <div class="schedule-cell">有氧操<br>李教练<br>剩余：6</div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <footer>
        <div class="footer-content">
            <div class="footer-section">
                <h4>联系我们</h4>
                <p>地址：济南市章丘区健身大街88号</p>
                <p>电话：400-XXX-XXXX</p>
                <p>邮箱：info@qiangjian.com</p>
            </div>
            <div class="footer-section">
                <h4>关注我们</h4>
                <div class="social-links">
                    <a href="#" class="social-link">微信</a>
                    <a href="#" class="social-link">微博</a>
                    <a href="#" class="social-link">抖音</a>
                </div>
            </div>
        </div>
        <div class="footer-bottom">
            <p>&copy; 2025 十年全勤健身 版权所有</p>
        </div>
    </footer>

    <nav class="quick-nav">
        <ul class="quick-nav-links">
            <li><a href="index.html">首页</a></li>
            <li><a href="courses.html">课程介绍</a></li>
            <li><a href="trainers.html">教练团队</a></li>
            <li><a href="facilities.html">器材设施</a></li>
            <li><a href="news.html">健身资讯</a></li>
            <li><a href="shop.html">在线商城</a></li>
            <li><a href="member.html">会员中心</a></li>
            <li><a href="events.html">活动专区</a></li>
            <li><a href="about.html">关于我们</a></li>
            <li><a href="contact.html">联系我们</a></li>
        </ul>
    </nav>

    <script src="js/mobile-nav.js"></script>
    <script src="js/courses.js"></script>
    <script src="js/nav-highlight.js"></script>
</body>

</html>
<div class="booking-modal" id="bookingModal">
    <div class="modal-content">
        <span class="close-btn">&times;</span>
        <div class="booking-form" id="bookingForm">
            <h2>课程预约</h2>
            <form id="courseBookingForm">
                <div class="form-group">
                    <label for="name">姓名</label>
                    <input type="text" id="name" name="name" required>
                </div>
                <div class="form-group">
                    <label for="phone">手机号码</label>
                    <input type="tel" id="phone" name="phone" required pattern="[0-9]{11}">
                </div>
                <div class="form-group">
                    <label for="preferredTime">期望上课时间</label>
                    <input type="datetime-local" id="preferredTime" name="preferredTime" required>
                </div>
                <button type="submit" class="submit-btn">提交预约</button>
            </form>
        </div>
        <div class="payment-qr" id="paymentQR" style="display: none;">
            <h2>请扫码支付</h2>
            <div class="course-fee"></div>
            <img src="assets/imgs/ewm.png" alt="收款码">
            <p>支付完成后，我们会尽快与您联系确认课程安排</p>
        </div>
    </div>
</div>

<style>
    .booking-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        background-color: #fff;
        padding: 2rem;
        border-radius: 8px;
        width: 90%;
        max-width: 500px;
        position: relative;
        animation: modalFadeIn 0.3s ease;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .close-btn {
        position: absolute;
        right: 1rem;
        top: 1rem;
        font-size: 1.5rem;
        cursor: pointer;
        color: #666;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: #333;
    }

    .form-group input {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1rem;
    }

    .submit-btn {
        background-color: #2ecc71;
        color: white;
        padding: 1rem 2rem;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        width: 100%;
        font-size: 1rem;
        transition: background-color 0.3s;
    }

    .submit-btn:hover {
        background-color: #27ae60;
    }

    .payment-qr {
        text-align: center;
    }

    .payment-qr img {
        max-width: 200px;
        margin: 2rem 0;
    }

    .payment-qr .course-fee {
        font-size: 1.5rem;
        color: #e74c3c;
        margin: 1rem 0;
        font-weight: bold;
    }
</style>

<script>
    document.addEventListener('DOMContentLoaded', function () {
        const modal = document.getElementById('bookingModal');
        const closeBtn = document.querySelector('.close-btn');
        const bookingForm = document.getElementById('bookingForm');
        const paymentQR = document.getElementById('paymentQR');
        const bookButtons = document.querySelectorAll('.book-btn');

        bookButtons.forEach(button => {
            button.addEventListener('click', function (e) {
                e.preventDefault();
                const courseCard = this.closest('.course-card');
                const courseName = courseCard.querySelector('h3').textContent;
                const coursePrice = courseCard.querySelector('.price').textContent;

                modal.style.display = 'flex';
                paymentQR.querySelector('.course-fee').textContent = `课程费用：${coursePrice}`;
                document.body.style.overflow = 'hidden';
            });
        });

        closeBtn.addEventListener('click', function () {
            modal.style.display = 'none';
            document.body.style.overflow = 'auto';
            // 重置表单显示状态
            bookingForm.style.display = 'block';
            paymentQR.style.display = 'none';
        });

        document.getElementById('courseBookingForm').addEventListener('submit', function (e) {
            e.preventDefault();
            bookingForm.style.display = 'none';
            paymentQR.style.display = 'block';
        });

        modal.addEventListener('click', function (e) {
            if (e.target === modal) {
                modal.style.display = 'none';
                document.body.style.overflow = 'auto';
                // 重置表单显示状态
                bookingForm.style.display = 'block';
                paymentQR.style.display = 'none';
            }
        });
    });
</script>